package com.hy.z.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hy.z.utils.TreeNode;
import com.hy.z.dto.UserRoleDto;
import com.hy.z.entity.Role;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Fhy
 * @since 2021-01-14
 */
public interface RoleService extends IService<Role> {

    IPage<Role> queryAllRole(long pageNum,long pageSize);

    boolean updatePermission(String roleId,String resourcesIds) throws Exception;

    List<TreeNode>  queryRoleIds(String roleId);

    List<Role> queryRoleList();

    boolean updateRoleByUserId(UserRoleDto userRoleDto);
}
